package com.zytech.zspider.task.impl.http;

import com.gargoylesoftware.htmlunit.WebClient;

/**
 * @author siuming
 */
final class WebClientHolder {

    private static final ThreadLocal<WebClient> BINDINGS = new ThreadLocal<WebClient>();

    /**
     * @return
     */
    static WebClient get() {
        return BINDINGS.get();
    }

    /**
     * @param webClient
     */
    static void set(WebClient webClient) {
        BINDINGS.set(webClient);
    }

    private WebClientHolder() {
    }
}
